//
//  NSString+Main.m
//  us
//
//  Created by karry on 2025/4/4.
//

#import "NSString+Main.h"

@implementation NSString (Main)

- (BOOL)isValidPhoneNumber {
    NSString *pattern = @"^1[3-9]\\d{9}$";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", pattern];
    return [predicate evaluateWithObject:self];
}

@end
